<?
	$device = new objDevice($_GET['device_id']);	
	$device->os->getResources();

?>
<form id="addDevice" class="dialogForm">
	<input type="hidden" name="id" value="<?=$device->id?>"/>
	<p>
		<label>Device Name:</label>
		<input type="text" name="description" value="<?=$device->description?>"/>
	</p>

	<p>
		<label>Hostname/IP:</label>
		<input type="text" name="hostname" value="<?=$device->hostname?>"/>
	</p>
	<p>
		<label>Device Group:</label>
		<select name="type">
			<option>Test Option</option>
		</select>
	</p>
	<p>
		<label>Disables/Ignore</label>
		<span class="iToggle <?=$device>-ignore?'checked':''?>"><?=$device->ignore?'Yes':'No'?><span></span></span>
	</p>
	<h3><input type="checkbox" name="useSNMP" value="1"  <?=$device->useSNMP?'CHECKED':''?>/> SNMP Settings</h3>
	<p>
		<label>Community:</label><input type="text" name="community" value="<?=$device->community?>"/><label class="inline">Version</label><input type="text" name="version" value=""/>
	</p>
	<h3>Map Configuration</h3>
	<textarea name="map"><?=$device->map?></textarea>
</form>